//弹性布局
@mixin flexMode($align: center, $justify: center, $direction: row) {
  display: flex;
  flex-direction: $direction;
  align-items: $align;
  justify-content: $justify;
}

//省略号
@mixin ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//多行省略
@mixin ellipsis-more($clamp: 2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $clamp;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

//图片objcet
@mixin imgCover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

//滚动
@mixin scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

//滚动y轴
@mixin scroll-y {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

//card
@mixin card($borderRadius: 5px, $userColor: #000, $userAlpha: 0.1) {
  border-radius: $borderRadius;
  overflow: hidden;
  box-shadow: 0 0 20px rgba($color: $userColor, $alpha: $userAlpha);
  background: #fff;
}

@mixin viewTop {
  height: 100%;
  padding-top: 46px;
  box-sizing: border-box;
}
